package com.unience.ec2.eclipse.treeviewer.ui;



import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;

import com.unience.ec2.eclipse.model.Ec2Info;

public class ThreeItemFilter extends ViewerFilter {

	/*
	 * @see ViewerFilter#select(Viewer, Object, Object)
	 */
	public boolean select(Viewer viewer, Object parentElement, Object element) {
		return parentElement instanceof Ec2Info && ((Ec2Info)parentElement).size() >= 3;
	}

}
